/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package MyPackage;

import java.util.*;
/**
 *
 * @author worawitp
 */
public class MyTimer {
    public static int EVERY = 1;
      public static int EVERYDAY = 2;
      public static int ON = 3;

  public List<Command> command_list;
  public Calendar calendar;

  public String timerID;
  public String timeStr;
  public MySubTimer schedule;
  
  public MySubTimer getSchedule(){ return schedule;}
  public void setSchedule(MySubTimer ms){ this.schedule=ms;}

  public void MySchedule(int timeLength) {
        //toolkit = Toolkit.getDefaultToolkit();
        //timer = new Timer();
        //(task,initial delay,subsequent rate)
        //timer.schedule(new RemindTask(),0, timeLength * 1000);
    }

  public static class MySubTimer{
      private int scheduleType;
      private List<Node> daylist;
      
      public void setType(int type){ this.scheduleType = type;}
      public int getType(){ return this.scheduleType;}

      public void setDaylist(List<Node> nodeList){
          this.daylist = nodeList;
      }
      public List<Node> getDaylist(){return daylist;}
  }
}
